home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9096 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Problem Negating an Unsigned Char
  5. Date: 05 Mar 1996 03:31:46 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Mar4203146@qcd.lanl.gov>
  8. References: <Dnnros.Lq.0.-s@hkusuc.hku.hk> <4he27sINNdel@keats.ugrad.cs.ubc.ca>
  9.     <DnqMyr.4pF@cwi.nl> <4hfmmgINN4t8@anvil.ugrad.cs.ubc.ca>
  10. NNTP-Posting-Host: qcd.lanl.gov
  11. Mime-Version: 1.0
  12. Content-Type: text
  13. In-reply-to: c2a192@ugrad.cs.ubc.ca's message of 4 Mar 1996 13:18:08 -0800
  14.  
  15. In article <4hfmmgINN4t8@anvil.ugrad.cs.ubc.ca>
  16. c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
  17. <snip>
  18. KK: Casting to an unsigned quantity is implementation defined. 
  19.  
  20. Incorrect. Casting to signed is indeed implementation defined: casting
  21. to unsigned is perfectly well defined by the standard.
  22.  
  23. In two's complement arithmetic, it involves no change in the
  24. bitpattern. In others, the bit pattern may change.
  25.  
  26. I know that you know this: it is just the statement that is misleading. 
  27.  
  28. Cheers
  29. Tanmoy
  30.  
  31. --
  32. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  33. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  34. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  35. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  36. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  37. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  38.